package site.xuxingcan.Model;

/**
 * Created by xuxingcan on 16-7-26.
 */
public class RoomActionModel extends BaseModel {
    public static final int GET_IN_ROOM = 1, NEW_ROOM = 2, OUT_OF_ROOM = 3;
    private int action;
    private boolean result;
    private int roomNumber;
    private String userName;
    private String randomString = "";

    public RoomActionModel(String userName, String randomString, int roomNumber, int action) {
        this.action = action;
        this.userName = userName;
        this.roomNumber = roomNumber;
        this.randomString = randomString;
        this.modelType = BaseModel.TYPE_ROOM_ACTION_MODEL;
    }

    public int getAction() {
        return action;
    }

    public String getUserName() {
        return userName;
    }

    public String getRandomString() {
        return randomString;
    }

    public int getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(int roomNumber) {
        this.roomNumber = roomNumber;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }
}
